package com.bing.bingPro.controller.vo;

import com.bing.bingPro.controller.dto.TOrderDetailsDTO;
import com.bing.bingPro.controller.dto.TOrderMissDetailsDTO;
import lombok.Data;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

@Data
public class TOrderMissReportFromsVO implements Comparator<TOrderMissReportFromsVO> {

    // 省首字母
    private String firstLetter;
    /**
     * 省份
     */
    private String provinceName;

    /**
     * 工单类型集合
     */
    private List<TOrderMissDetailsDTO> tOrderMissDetailsDTOList;

    /**
     * 日
     */
    private List<TOrderDetailsDTO> dayCount;


    @Override
    public int compare(TOrderMissReportFromsVO o1, TOrderMissReportFromsVO o2) {
        return o1.getProvinceName().compareTo(o2.getProvinceName());
    }

    public TOrderMissReportFromsVO() {
    }

    public TOrderMissReportFromsVO(String firstLetter, String provinceName, List<TOrderMissDetailsDTO> tOrderMissDetailsDTOList, List<TOrderDetailsDTO> dayCount) {
        this.firstLetter = firstLetter;
        this.provinceName = provinceName;
        this.tOrderMissDetailsDTOList = tOrderMissDetailsDTOList;
        this.dayCount = dayCount;
    }
}
